package com.zhu.mapper;


import com.zhu.pojo.Expend;
import com.zhu.pojo.Income;
import com.zhu.pojo.TransSum;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface IncomeMapper {
    List<Income> getAll(int userId);

    List<Income> getByCondition(Income Income);

    List<Map<Object,Object>> getNumAndName(TransSum transSum);

    List<Income> getAllByAdmin();
    List<Income> getByAdmin(Income income);

    int add(Income income);

    int update(Income income);

    int delete(int id);

    TransSum getSum(TransSum transSum);
}
